//
//  ContentView.swift
//  Video
//
//  Created by bnd on 2024/4/26.
//

import SwiftUI

struct ContentView: View {

    
    var body: some View {
        VStack{
            HStack {
                //列表
                List(TopItemData){item in
                    HStack(spacing:15, content: {
                        Image(systemName: item.image).resizable()
                            .frame(width: 50,height: 50)
                        VStack(alignment: .leading, content: {
                            Text(item.name)
                        }).frame(height: 80)
                            
                    } )
                }
            }
//            .padding()
        }
        Image(systemName: "globe")
            .imageScale(.large)
//            .foregroundStyle(.tint)
        Text("Hello, world111呜呜呜呜 31123!")
    }
}

let TopItemData = [
    TopItem(name: "发起会议", image: "globe"),
    TopItem(name: "加入会议", image: "globe"),
    TopItem(name: "预约会议", image: "globe"),
    TopItem(name: "智会速记", image: "globe")
]

struct TopItem: Identifiable {
    let id = UUID()
    
    var name:String
    var image:String
}

//#Preview {
//    ContentView()
//}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
